package cn.group.exceptions;

/**
 * 自定义异常父类
 */
public class BaseException extends RuntimeException {
    private String message;
    private int errorCode;

    public BaseException(String message, int errorCode) {
        this.message = message;
        this.errorCode = errorCode;
    }

    public BaseException() {
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
